package com.hpjpw.ido.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hpjpw.ido.mapper.AnonymousMomentMapper;
import com.hpjpw.ido.domain.AnonymousMoment;
import com.hpjpw.ido.service.IAnonymousMomentService;

/**
 * 撕逼墙Service业务层处理
 * 
 * @author hpj
 * @date 2021-01-08
 */
@Service
public class AnonymousMomentServiceImpl implements IAnonymousMomentService 
{
    @Autowired
    private AnonymousMomentMapper anonymousMomentMapper;

    /**
     * 查询撕逼墙
     * 
     * @param id 撕逼墙ID
     * @return 撕逼墙
     */
    @Override
    public AnonymousMoment selectAnonymousMomentById(Long id)
    {
        return anonymousMomentMapper.selectAnonymousMomentById(id);
    }

    /**
     * 查询撕逼墙列表
     * 
     * @param anonymousMoment 撕逼墙
     * @return 撕逼墙
     */
    @Override
    public List<AnonymousMoment> selectAnonymousMomentList(AnonymousMoment anonymousMoment)
    {
        return anonymousMomentMapper.selectAnonymousMomentList(anonymousMoment);
    }

    /**
     * 新增撕逼墙
     * 
     * @param anonymousMoment 撕逼墙
     * @return 结果
     */
    @Override
    public int insertAnonymousMoment(AnonymousMoment anonymousMoment)
    {
        return anonymousMomentMapper.insertAnonymousMoment(anonymousMoment);
    }

    /**
     * 修改撕逼墙
     * 
     * @param anonymousMoment 撕逼墙
     * @return 结果
     */
    @Override
    public int updateAnonymousMoment(AnonymousMoment anonymousMoment)
    {
        return anonymousMomentMapper.updateAnonymousMoment(anonymousMoment);
    }

    /**
     * 批量删除撕逼墙
     * 
     * @param ids 需要删除的撕逼墙ID
     * @return 结果
     */
    @Override
    public int deleteAnonymousMomentByIds(Long[] ids)
    {
        return anonymousMomentMapper.deleteAnonymousMomentByIds(ids);
    }

    /**
     * 删除撕逼墙信息
     * 
     * @param id 撕逼墙ID
     * @return 结果
     */
    @Override
    public int deleteAnonymousMomentById(Long id)
    {
        return anonymousMomentMapper.deleteAnonymousMomentById(id);
    }
}
